<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2018/9/5
 * Time: 10:14
 */

$api->group(['prefix' => 'user','namespace'=>'User'],function ($api){
    $api->post('getSessionKey','LoginController@getSessionKey');//获取session_key
    $api->post('getUserInfo','LoginController@getUserInfo');//获取用户的基本信息
    $api->post('register','LoginController@register');//小程序用户自动注册
    $api->post('login','LoginController@login');//小程序用户登录
});